Write(LogMessageSeverity,String,Int32,Exception,Boolean,LogWriteMode,String,String,String,String,Object[]) Method
In This Topic
Write a complete log message directly to the Loupe log from a wrapper method or bridging logic, attributing the source of the message farther up the call-stack.
Syntax
'Declaration
Public Overloads Shared Sub Write( _
ByVal As LogMessageSeverity, _
ByVal As String, _
ByVal As Integer, _
ByVal As Exception, _
ByVal As Boolean, _
ByVal As LogWriteMode, _
ByVal As String, _
ByVal As String, _
ByVal As String, _
ByVal As String, _
ByVal ParamArray () As Object _
)
public static void Write(
LogMessageSeverity ,
string ,
int ,
Exception ,
bool ,
LogWriteMode ,
string ,
string ,
string ,
string ,
params object[]
)
Parameters
- severity
- The log message severity.
- logSystem
- The name of the originating log system (e.g. "Log4Net").
- skipFrames
- The number of stack frames to skip back over to determine the original caller. (0 means the immediate caller of this method; 1 means their immediate caller, and so on.)
- exception
- An Exception object to attach to this log message.
- attributeToException
- True to record this log message based on where the exception was thrown, not where this method was called
- writeMode
- Whether to queue-and-return or wait-for-commit.
- detailsXml
- An XML document (as a string) with extended details about the message. (May be null.)
- category
- The application subsystem or logging category that the log message is associated with, which supports a dot-delimited hierarchy.
- caption
- A simple single-line message caption. (Will not be processed for formatting.)
- description
- Additional multi-line descriptive message (or may be null) which can be a format string followed by corresponding args.
- args
- A variable number of arguments referenced by the formatted description string (or no arguments to skip formatting).
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also